function spectro = tiraSpectro(note,onsets)

plc = 1;

for i=1:length(onsets)

    for j=1:20
    
        size = length(note(i).Amp(:,j));
    
        spectro(plc:plc+size-1,j) = note(i).Amp(:,j);
        
    end

    plc = plc+size;
end